package com.enterprise.service.impl;

import com.enterprise.dao.NewsDao;
import com.enterprise.dao.ServersManage;
import com.enterprise.entity.News;
import com.enterprise.entity.page.PageModel;
import com.enterprise.service.NewsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("newsService")
public class NewsServiceImpl extends ServersManage<News, NewsDao> implements NewsService {

	@Resource(name="newsDao")
	@Override
	public void setDao(NewsDao newsDao) {
		this.dao = newsDao;
	}

	@Override
	public PageModel selectPage(News news) {
		return this.dao.selectPage(news);
	}
}
